/* Profile-specific portal footer. */
#portal-profile-footer {
    margin-top: auto;
    padding: 32px 0 28px;
    border-top: 3px solid var(--portal-footer-accent);
    background: var(--portal-ink);
    color: var(--portal-footer-text);
}

#portal-profile-footer .pf-inner {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: start;
    gap: 32px 48px;
}

#portal-profile-footer .pf-links {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

#portal-profile-footer .pf-links li {
    margin: 0;
    padding: 0;
}

#portal-profile-footer a {
    color: var(--portal-white);
    text-decoration: underline;
    text-decoration-color: var(--portal-footer-link-underline);
    text-underline-offset: 5px;
    text-decoration-thickness: 1px;
}

#portal-profile-footer a:hover {
    color: var(--portal-footer-link-hover);
    text-decoration-color: var(--portal-white);
    text-decoration-thickness: 2px;
}

#portal-profile-footer .pf-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

#portal-profile-footer .pf-credit {
    padding-top: 8px;
    text-align: right;
}

#portal-profile-footer .pf-credit p {
    margin: 0;
    color: var(--portal-footer-credit);
}

#portal-profile-footer .pf-credit a {
    display: inline-block;
}

#portal-profile-footer .pf-credit .pf-powered {
    margin-top: 8px;
    color: var(--portal-footer-powered);
}

@media (max-width: 767px) {
    #portal-profile-footer {
        padding: 24px 0;
    }
}

@media (max-width: 767px) {
    #portal-profile-footer .pf-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }
}

@media (max-width: 767px) {
    #portal-profile-footer .pf-credit {
        padding-top: 20px;
        border-top: 1px solid var(--portal-footer-divider);
        text-align: left;
    }
}

@media (max-width: 575px) {
    #portal-profile-footer .pf-inner {
        width: calc(100% - 32px);
    }
}

@media (max-width: 575px) {
    #portal-profile-footer .pf-links {
        gap: 2px 22px;
    }
}
